home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr49
/
273_01.zip
/
WRITETTY.CC
< prev
next >
Wrap
Text File
|
1993-04-04
|
625b
|
30 lines
#include <dos.h>
write_tty(char *ch)
/* This will put the character string pointer to by *ch on the screen
at the current cursor location using attribute attr.
*/
{
union REGS inregs;
while(*ch) {
inregs.h.bh=0;
inregs.h.bl=0;
inregs.h.al=*ch;
inregs.h.ah=0x0e;
int86(0x10,&inregs,&inregs);
ch++;
}
inregs.h.bh=0;
inregs.h.bl=0;
inregs.h.al=0x0d;
inregs.h.ah=0x0e;
int86(0x10,&inregs,&inregs);
inregs.h.bh=0;
inregs.h.bl=0;
inregs.h.al=0x0a;
inregs.h.ah=0x0e;
int86(0x10,&inregs,&inregs);
}